﻿using ERPPublic;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WarehouseManagement.Domain.Entity
{

    /// <summary>
    /// 仓库入库产品关联表
    /// </summary>
    [SugarTable("StorageProduct")]
    public class StorageProduct
    {
        /// <summary>
        /// 仓库入库产品id
        /// </summary>
        [SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
        public int StorageProductId { get; set; }
        /// <summary>
        /// 单据编号(仓库入库申请单据编号)
        /// </summary>
        public string? StorageNumber { get; set; }
        /// <summary>
        /// 产品编号
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(50)")]//设计长度
        public string? PNumber { get; set; }
        /// <summary>
        /// 产品名称
        /// </summary>
        /// 
        [SugarColumn(ColumnDataType = "Nvarchar(50)")]//设计长度
        public string? PName { get; set; }
        /// <summary>
        /// 规格型号
        /// </summary>
        /// 
        [SugarColumn(ColumnDataType = "Nvarchar(50)")]//设计长度
        public string? PSpec { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        /// 
        [SugarColumn(ColumnDataType = "Nvarchar(50)")]//设计长度
        public string? PUnit { get; set; }
        /// <summary>
        /// 单价
        /// </summary>
        public decimal ? PPrice { get; set; }

        /// <summary>
        /// 申请入库数
        /// </summary>
        public int? SPConfirmNum { get; set; }
        /// <summary>
        /// 总金额
        /// </summary>
        public decimal? SumPrice { get; set; }
        /// <summary>
        /// 批号
        /// </summary>
        public string? Batch { get; set; }
        /// <summary>
        /// 生产日期
        /// </summary>
        public DateTime? CreateDate { get; set; }
        /// <summary>
        /// 有效期
        /// </summary>
        public DateTime? ValidDate { get; set; }
        /// <summary>
        /// 到货日期
        /// </summary>
        public DateTime? ArriveDate { get; set; }
        /// <summary>
        /// 包装方式
        /// </summary>
        public string? WrapName { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string ? Remark { get; set; }
        /// <summary>
        /// 确认入库仓库
        /// </summary>
        public int SumNum { get; set; } = 0;

    }
}
